//
//  SYReturnLabel.h
//  HA
//
//  Created by sy on 2023/12/17.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@class SYReturnLabel;

typedef NS_ENUM(NSInteger, RunDirectionType) {
 LeftType = 0,
 RightType = 1,
};
 
@protocol SYReturnLabelDelegate <NSObject>
 
@optional
- (void)operateLabel: (SYReturnLabel *)autoLabel animationDidStopFinished: (BOOL)finished;
 
@end


@interface SYReturnLabel : UIView

@property (nonatomic, weak) id <SYReturnLabelDelegate> delegate;
@property (nonatomic, assign) CGFloat speed;
@property (nonatomic, assign) RunDirectionType directionType;
 
- (void)addContentView: (UIView *)view;
- (void)startAnimation;
- (void)stopAnimation;


@end

NS_ASSUME_NONNULL_END
